package com.entrogy.service;

import com.entrogy.bean.BusLineEntity;

import java.util.List;

/**
 * @ClassName BusLineService
 * @Description
 * @Author luoxingjiang
 * @Date 2019-11-08 上午 10:08
 * @Version 1.0
 **/
public interface BusLineService {

    /**
     * 查出该学校路线
     * @param schoolCode
     * @return
     */
    List<BusLineEntity> listSchoolBusLine(Integer schoolCode);

    /**
     * 新增学校路线
     * @param busLine
     * @return
     */
    boolean insertBusLine(BusLineEntity busLine);

    /**
     * 删除学校路线id
     * @param busLineId
     * @param userId
     * @return
     */
    boolean deleteBusLine(Integer busLineId, String userId);

    /**
     * 更新校车路线
     * @param busLine
     * @return
     */
    boolean updateBusLine(BusLineEntity busLine);

    /**
     * 发送消息给学生家长
     * @param studentIdList
     * @param type
     * @param userId
     * @return
     */
    boolean sendMessage(List<Integer> studentIdList, Integer type, String userId);

    /**
     * 查询路线数量
     * @param schoolCode
     * @return
     */
    Integer countSchoolBusLine(Integer schoolCode);
}
